package demo;

import java.util.StringJoiner;

public class StringJoinerdemo {
    public static void main(String[] args) {
        StringJoiner sj=new StringJoiner(",","[","]");
        sj.add("abc").add("cba");
        System.out.println(sj);

    }
}
